import request from '@/utils/request'

// 查询质检管理列表
export function listQuality(query) {
  return request({
    url: '/quality/quality/list',
    method: 'get',
    params: query
  })
}

// 查询质检管理详细
export function getQuality(qualityId) {
  return request({
    url: '/quality/quality/' + qualityId,
    method: 'get'
  })
}

// 新增质检管理
export function addQuality(data) {
  return request({
    url: '/quality/quality',
    method: 'post',
    data: data
  })
}

// 修改质检管理
export function updateQuality(data) {
  return request({
    url: '/quality/quality',
    method: 'put',
    data: data
  })
}

// 删除质检管理
export function delQuality(qualityId) {
  return request({
    url: '/quality/quality/' + qualityId,
    method: 'delete'
  })
}
// 审核
export function auditQuality(data) {
  return request({
    url: '/quality/quality/audit',
    method: 'put',
    data: data
  })
}